<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
[[${world}]]<br>
<div th:text="${session.hai}">默认值</div>
<input th:value="${world}"><br>
<div th:each="l,s:${list}">
    角标：<span th:text="${s.index}"></span>：行号：<span th:text="${s.count}"></span>
    <ul th:text="${l}">默认值</ul>
</div>
<div th:text="${num} == 10 ? '是10' : '不是10'"></div>
<div th:if="${num} == 10">是10</div>
<div th:if="${num} != 10">不是10</div>

</body>
</html>